package com.bootdo.wx.service;

import com.bootdo.wx.domain.GoodsGoodsDO;
import com.bootdo.common.utils.R;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * 商品
 * 
 * @author sys
 * @email 1992lcg@163.com
 * @date 2019-03-19 16:39:22
 */
public interface GoodsGoodsService {
	
	GoodsGoodsDO get(String id);
	
	List<GoodsGoodsDO> list(Map<String, Object> map);

	List<Map<String,Object>> queryAllForIdAndName(Map<String, Object> map);

	int count(Map<String, Object> map);
	
	int save(GoodsGoodsDO goodsGoods);
	
	int update(GoodsGoodsDO goodsGoods);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	R findGoods(Map<String, Object> map);

	int add(GoodsGoodsDO goodsGoods, String products, String spec_values, String param_values, String images,
			String imagesDetail);

	int edit(GoodsGoodsDO goodsGoods, String products, String spec_values, String param_values, String images,
			 String imagesDetail);

	R recommend(Map<String, Object> params);

	R goodsListByClass(Map<String, Object> params);
//
	R getDetail(Map<String, Object> params);

	R getSpikeDetail(Map<String, Object> params);

	R getNineDetail(Map<String, Object> params);

	R getBargainDetail(Map<String, Object> params);

	R getUpgradeDetail(Map<String, Object> params);

	R getTeamDetail(Map<String, Object> params);

	Map<String,Object> getCmsGoods(Map<String, Object> params);

	R getHotList(Map<String, Object> map);

	/*判断该商品是否能购买*/
	R isCanBye(Map<String,Object> params);

	/*获取后台商品列表*/
	List<Map<String, Object>> getList(Map<String, Object> map);


//
//	R getGroupGoods(Map<String, Object> params);
//
//	R getSpike(Map<String, Object> params);
}
